projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e22a6b
)
xenpaging: close xch handle in xenpaging_init error path
author
Olaf Hering
<olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:10 +0000
(18:47 +0000)
committer
Olaf Hering
<olaf@aepfle.de>
Tue, 14 Dec 2010 18:47:10 +0000
(18:47 +0000)
Just for correctness, close the xch handle in the error path.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/xenpaging.c
patch
|
blob
|
history
diff --git
a/tools/xenpaging/xenpaging.c
b/tools/xenpaging/xenpaging.c
index 10026612059546b07e104c0bb7bd7d792f85756d..9bfbd12ea0178088de6a75192fcc4a26b434fde7 100644
(file)
--- a/
tools/xenpaging/xenpaging.c
+++ b/
tools/xenpaging/xenpaging.c
@@
-224,6
+224,7
@@
xenpaging_t *xenpaging_init(xc_interface **xch_r, domid_t domain_id)
err:
if ( paging )
{
+ xc_interface_close(xch);
if ( paging->mem_event.shared_page )
{
munlock(paging->mem_event.shared_page, PAGE_SIZE);